using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Gammar.Digger.Entity;
using Gammar.Digger.SystemFramework;
namespace Gammar.Digger.IDAL
{
	public interface Idigger_plugin
	{
		//C
        int Add(digger_pluginEntity digger_plugin);
		
		int AddPartial(digger_pluginEntity entity);

        //U
        int Update(digger_pluginEntity digger_plugin);

        int Updatepartial(digger_pluginEntity entity, string where);

		int UpdateByplugin_id(digger_pluginEntity digger_plugin);
		
        //D
        int Delete(string where);

        //R
        object GetCell(string cellName, string where);

        digger_pluginEntity GetEntity(int primaryKeyId);

        DataTable GetTable(string where);

        SortList<digger_pluginEntity> GetList(string strWhere);

        List<digger_pluginEntity> GetPartial(string[] selectedFields,string where);
	}
}

